<%@page import="com.zhuoshi.dao.ManagerDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String id = request.getParameter("id");
	ManagerDao dao = new ManagerDao();
	if (Integer.parseInt(id) > 1) {
		int rows = 0;
		rows = dao.delete(Integer.parseInt(id));

		if (rows > 0) {
			response.sendRedirect("managerlist.jsp");
		}
	} else {
		out.print("<script language='javascript'>alert('超级管理员不能被删除！');location.href='managerlist.jsp';</script>");
	}
%>
